package com.glory.dmegcpda.bean

import java.io.Serializable

/**
 * FileName: KeepInfoEntity
 * Author: XJH
 * Date: 2021/10/27 17:33
 * Description:
 * History:
 */
data class KeepInfoEntity(
    var PMSSHEETDATA: PmsSheetDataEntity = PmsSheetDataEntity()
) : Serializable {
    data class PmsSheetDataEntity(
        var OBJECTRRN: Long = 0,
        var SHEETNAME: String = "",
        var SHEETDESC: String = "",
        var TYPE: String = "",
        var STYLE: Int = 0,
        var LOCKVERSION: Int = 0,
        var UPDATED: String = "",
        var CREATED: String = "",
        var CHECKLINEDATALIST: List<CheckDataEntity> = arrayListOf(),
        var PARTSLINEDATALIST: List<PartDataEntity> = arrayListOf(),
        var DATASLINEDATALIST: List<DataLineEntity> = arrayListOf(),
    ) : Serializable {

        data class CheckDataEntity(
            var STYLE: Int = 0,
            var SHEETDATARRN: Long = 0,
            var SEQNO: Int = 0,
            var NAME: String = "",
            var DESCRIPTION: String = "",
            var UNIT: String = "",
            var CRITERIA: String = "",
            var STANDARDNUMBER: String = "",
            var STANDARDTIME: String = "",
            var CONFIRMJUDGE: String = "",
            var COMMENTS: String = "",
            var STEP: String = "",
            var PROCESSMETHOD: String = "",
            var ISJUDGEBYMANUAL: Boolean = false,
            var ORGRRN: Long = 0,
            var ISACTIVE: Boolean = false,
            var UPDATEDBY: String = "",
//            var OBJECTRRN: Long = 0,
            var RECIPE: String = "",
            var RESERVED1: String = ""
        ) : Serializable

        data class PartDataEntity(
            var LINEDATARRN: Long = 0,
            var SHEETDATARRN: Long = 0,
            var PARTSNAME: String = "",
            var SEQNO: Int = 0,
            var PARTSRRN: Long = 0,
            var PARTSDESC: String = "",
            var STANDARDQTY: Int = 0,
            var USEDQTY: Int = 0,
            var COMMENTS: String = "",
            var ORGRRN: Long = 0,
            var ISACTIVE: Boolean = false,
            var CREATED: String = "",
            var UPDATED: String = "",
//            var OBJECTRRN: Long = 0,
            var LASTCHANGETIME: String = "",
            var BATCHTYPE: String = "",
            var CATEGORY: String = "",
            var PARTSUSELIST : ArrayList<PartSuseEntity> = arrayListOf()
        ) : Serializable

        data class PartSuseEntity(
            var MLOTID : String = "",
            var MATERIALNAME : String = "",
            var REPLACETIME : String = "",
            var POSITION : String = "",
            var USEQTY : Int = 0
        ) : Serializable

        data class DataLineEntity(
            var STYLE : Int = 0,
            var LINEDATARRN : Long = 0,
            var SHEETDATARRN : Long = 0,
            var ORGRRN : Long = 0,
            var DATANAME : String = "",
            var DESCRIPTION : String = "",
            var DATATYPE : String = "",
            var SEQNO : Int = 0,
            var MAXVALUE : Int = 0,
            var MINVALUE : Int = 0,
            var SAMPLESIZE : Int = 0,
            var DISPLAYTYPE : String = "",
            var UNIT : String = "",
            var DATASTRING : String = "",
            var REFERENCENAME : String = "",
            var COMMENTS : String = "",
            var CREATED : String = "",
            var UPDATED : String = "",
            var PICTURE : String = "",
            var ISJUDGEBYMANUAL : Boolean = false,
            var ISACTIVE : Boolean = false
        ) : Serializable

    }
}